home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8013 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  780 b 

  1. Path: in2.uu.net!van-bc!uniserve!dudd!carl
  2. From: Carl@dudd.uniserve.com (Carl)
  3. Date: 29 Feb 96 18:57:05 
  4. Newsgroups: comp.lang.c
  5. Subject: gettimeofday() makes me mad !
  6. Message-ID: <208_9602292012@dudd.uniserve.com>
  7. X-FTN-To: bd@davaar.st-and.ac.uk
  8. Organization: De Udda Edda Gateway UUCP
  9.  
  10.  
  11.  >PROBLEM : I'm trying to make a little program which must repeat an
  12.  >action every .2 second for example ( less than 1 sec anyway). time()
  13.  >wouldn't fit, so I searched and found the function gettimeofday() in
  14.  
  15.  bd> You are on a Unix system, any reason you are not using 'sleep'?
  16.  
  17.  bd> Adam
  18.  
  19. What about if you use a function similar to the Borland  clock_t() which
  20. returns the amount of clock ticks since program start.  Don't clock ticks
  21. happen like 18 times per second on most systems?
  22.